import md5 from 'js-md5';
export default {
	getCookieOpenId() {
		let max = 9999;
		let rand =  parseInt(Math.random() * (max + 1), 10).toString();
		console.log("rand", rand,md5(rand));
		return md5(rand);
	},
	getStorage(key) {
		return uni.getStorageSync(key);
	},
	setStorage(key, value) {
		return uni.setStorageSync(key, value);
	},
	error(msg,title="提示"){
		uni.showModal({
		    title: title,
		    content: msg,
			showCancel:false,
		    success: function (res) {
		        
		    }
		});
	}
}
